<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>注册</title>
</head>
<script type="text/javascript" src="scripts/jquery-1.9.1.min.js"></script>
<script type="text/javascript">
	$(function(){
		$("#findList").click(function(){
			var url = "user/queryList.mvc";
			var args = {};
			$.GET(url, args, function(data){
				for(var i = 0; i < data.length; i++){
					//var instrumentNum = data[i].instrumentNum;
					var unitName = data[i].unitName;
					
					alert(unitName);
				}
			});
			return false;
		});
	})
	
	$(function(){
		$("#findList2").click(function(){
			var url = "user/findunit";
			var args = {};
			$.post(url, args, function(data){
				for(var i = 0; i < data.length; i++){
					var instrumentNum = data[i].instrumentNum;
					var instrumentName = data[i].instrumentName;
					
					alert(instrumentNum + ": " + instrumentName);
				}
			});
			return false;
		});
	})
</script>
<body>
  <a href="user/queryList" id="findList">Test Json1</a>
  <a href="unit/findunit" id="findList2">Test Json2</a>
  <a href="instrument/delInstrument/2">Test del</a>
  <a href="unit/delUnit/1">Test delUnit</a>
</body>
</html> 